package cn.com.wangluotongxin.common.eureka.fallback;

import cn.com.wangluotongxin.common.eureka.CommonClient;
import cn.com.wangluotongxin.common.eureka.form.AuthPhoneCodeForm;
import cn.com.wangluotongxin.common.eureka.form.SendPhoneCodeForm;
import cn.com.wangluotongxin.common.eureka.form.SendSmsForm;
import cn.com.wangluotongxin.common.web.AjaxResult;
import org.springframework.stereotype.Component;

@Component
public class CommonClientFallback implements CommonClient {

    @Override
    public AjaxResult sendSms(SendSmsForm smsForm) {
        return AjaxResult.error("微服务链接异常");
    }

    @Override
    public AjaxResult sendPhoneCode(SendPhoneCodeForm form) {
        return AjaxResult.error("微服务链接异常");
    }

    @Override
    public AjaxResult authPhoneCode(AuthPhoneCodeForm form) {
        return AjaxResult.error("微服务链接异常");
    }
}
